package com.school.chapter02.tree_;

public class BinNode_ {
    public BinNode_ lchild;
    public BinNode_ rchild;
    public int data;

    public BinNode_(int data, BinNode_ lchild, BinNode_ rchild) {
        this.data = data;
        this.lchild = lchild;
        this.rchild = rchild;
    }

    public BinNode_ getLchild() {
        return lchild;
    }

    public void setLchild(BinNode_ lchild) {
        this.lchild = lchild;
    }

    public BinNode_ getRchild() {
        return rchild;
    }

    public void setRchild(BinNode_ rchild) {
        this.rchild = rchild;
    }


}
